<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="_style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Svg_loader.html">
<link rel="next" href="FunGL.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="GL" rel="Chapter" href="GL.html">
<link title="Glu" rel="Chapter" href="Glu.html">
<link title="Glut" rel="Chapter" href="Glut.html">
<link title="VertArray" rel="Chapter" href="VertArray.html">
<link title="VBO" rel="Chapter" href="VBO.html">
<link title="GLE" rel="Chapter" href="GLE.html">
<link title="Ftgl" rel="Chapter" href="Ftgl.html">
<link title="Jpeg_loader" rel="Chapter" href="Jpeg_loader.html">
<link title="Png_loader" rel="Chapter" href="Png_loader.html">
<link title="Svg_loader" rel="Chapter" href="Svg_loader.html">
<link title="Genimg_loader" rel="Chapter" href="Genimg_loader.html">
<link title="FunGL" rel="Chapter" href="FunGL.html">
<link title="FunGlut" rel="Chapter" href="FunGlut.html"><title>Genimg_loader</title>
</head>
<body>
<div class="navbar"><a href="Svg_loader.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="FunGL.html">Next</a>
</div>
<center><h1>Module <a href="type_Genimg_loader.html">Genimg_loader</a></h1></center>
<br>
<pre><span class="keyword">module</span> Genimg_loader: <code class="code"><span class="keyword">sig</span></code> <a href="Genimg_loader.html">..</a> <code class="code"><span class="keyword">end</span></code></pre>Generic image loader<br>
<hr width="100%">
<br>
This module uses the ImageMagick library, which can read 
  a lot of different images file formats.
  The complete list of these is available on 
  <a href="http://www.imagemagick.org/script/formats.php">this web-page</a>.
<p>

  If the image to load is known to be a jpeg or a png, you should
  use the specialised modules <code class="code"><span class="constructor">Jpeg_loader</span></code>, <code class="code"><span class="constructor">Png_loader</span></code> and
  <code class="code"><span class="constructor">Svg_loader</span></code> instead which will be far more efficient.<br>
<pre><span id="VALload_img"><span class="keyword">val</span> <a href="code_VALGenimg_loader.load_img.html">load_img</a></span> : <code class="type"><a href="GL.html#TYPEimg_input">GL.img_input</a> -><br>       <a href="GL.html#TYPEimage_data">GL.image_data</a> * int * int * <a href="GL.InternalFormat.html#TYPEinternal_format">GL.InternalFormat.internal_format</a> *<br>       <a href="GL.html#TYPEpixel_data_format">GL.pixel_data_format</a></code></pre><br>
The 2 additionnal integers are the <code class="code">width</code> and <code class="code">height</code><br>
</body></html>